﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" href="<%=CommonPath%>aliui/skin/default/common.css">
<ali:Comment><link rel="stylesheet" href="S01/CHS/css/common.css"></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css">
<script>
var _page = 'index',
	_lang = '<%=ContentLang%>',
	_webPath = '<%=WebPath%>',
	_commonPath = '<%=CommonPath%>',
	_channelPath = '<%=Request.RawUrl.Substring(0, Request.RawUrl.LastIndexOf('/') + 1)%>',
	_lang_working = '正在操作...',
	_lang_operation_fail = '操作失败！',
	_lang_operation_success = '操作成功！',
	_lang_page_number_incorrect = '请输入正确的页数！',
	_lang_selection_empty = '没有选择任何项！',
	_lang_confirm_delete = '真的要删除吗？',
	_lang_required = '请输入内容！';
</script>
<!--[if lt IE 8]><script>document.createElement('section');</script><![endif]-->
</head>
<body>
<div class="header1">
	<div>
		<%If Convert.IsDBNull(Channel[Link])%>
			<img src="<%=ImagePath%>logo1.gif" alt="<%=Channel[Name]%>">
		<%Else%>
			<img src="<%=Channel[Link]%>" alt="<%=Channel[Name]%>">
		<%EndIf%>
	</div>
	<dl>
		<dt><i><b>您好，<%=User["Name"]%></b></i></dt>
		<dd><a href="<%=BuildUrl("logout")%>"><img src="<%=ImagePath%>logout.gif" alt="安全退出"></a></dd>
	</dl>
</div>
<%If Convert.ToString(Channel[NavPosition]) == "Top"%>
	<ali:Tree Mark="System" Object="Channel.Menu" Operation="ListByRight((Guid)Channel[ID], 0)" Lang="PageLang">
		<div class="menu">
			<ul>
				<ali:Record>
					<li><a href="<%=URL%>" data-id="<%=InnerID%>" data-nav="<%=Nav%>"><%=Name%></a></li>
				</ali:Record>
			</ul>
		</div>
	</ali:Tree>
<%EndIf%>
<div class="frame1">
	<div class="frame1-left">
		<div class="ali-panel">
			<div class="ali-panel-header"><b>功能导航</b></div>
			<div class="ali-panel-body">
				<%If Convert.ToString(Channel[NavPosition]) == "Left"%>
					<ali:List ID="Menu1" Mark="System" Object="Channel.Menu" Operation="ListByRight((Guid)Channel[ID], null)" Lang="PageLang"/>
					<section data-page="nav">
						<%If Convert.ToString(Channel[SideNavStyle]) == "Tree"%>
							<ali:List Mark="System" Object="Channel.Menu" Source="Menu1" Condition="ParentChain='0'">
								<ul class="ali-tree">
									<ali:Record>
										<li>
											<%If Convert.ToString(Target) == ""%>
												<a href="<%=URL%>" target="ali-navtab"><%=Name%></a>
											<%Else%>
												<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
											<%EndIf%>
				
											<ali:List Mark="System" Object="Channel.Menu" Source="Menu1" Condition="ParentID=ID">
												<ul>
													<ali:Record>
														<%If Convert.ToString(Target) == ""%>
															<li><a href="<%=URL%>" target="ali-navtab"><%=Name%></a></li>
														<%Else%>
															<li><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></li>
														<%EndIf%>
													</ali:Record>
												</ul>
											</ali:List>
										</li>
									</ali:Record>
								</ul>
							</ali:List>
						<%Else%>
							//TODO
						<%EndIf%>
					</section>
				<%EndIf%>
			</div>
		</div>
	</div>
	<div class="frame1-mid"></div>
	<div class="frame1-right">
		<div class="ali-navtab">
			<div class="ali-navtab-header"></div>
		</div>
	</div>
</div>
<script src="<%=CommonPath%>jquery/core.js"></script>
<script src="<%=CommonPath%>aliui/ali.min.js"></script>
<!--
<script src="/aliui/release/ali.min.js"></script>
<script src="/aliui/js/ali.ui.dialog.js"></script>
<script src="/aliui/js/ali.ui.grid.js"></script>
-->
<script src="<%=JsPath%>common.js"></script>
</body>
</html>
